import request from '../utils/fetch'

export function addxieyi (data) {
  return request({
    url: '/admin/protocol/addPro',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function updatexieyi (data) {
  return request({
    url: '/admin/protocol/editPro',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function delxieyi (data) {
  return request({
    url: '/admin/protocol/delPro',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function xieyilist (data) {
  return request({
    url: '/admin/protocol/getList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}



export function addbangzhu (data) {
  return request({
    url: '/api/apiQuestion/add',
    method: 'get',
    requestBody: 'body',
    loading: true,
    params: data
  })
}

export function updatebangzhu (data) {
  return request({
    url: '/api/apiQuestion/update',
    method: 'get',
    requestBody: 'body',
    loading: true,
    params: data
  })
}

export function delbangzhu (data) {
  return request({
    url: '/api/apiQuestion/del',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function bangzhulist (data) {
  return request({
    url: '/api/apiQuestion/get',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function caozuorizhi (data) {
  return request({
    url: '/admin/log/getAdminLogList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}



export function addfenlei (data) {
  return request({
    url: '/admin/epArticle/addType',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function updatefenlei (data) {
  return request({
    url: '/admin/epArticle/updateType',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function delfenlei (data) {
  return request({
    url: '/admin/epArticle/delType',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function fenleilist (data) {
  return request({
    url: '/admin/epArticle/getTypeList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function wenzhangdetail (data) {
  return request({
    url: '/admin/epArticle/getArticleInfo',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}



export function addwenzhang (data) {
  return request({
    url: '/admin/epArticle/addEpArticle',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function updatewenzhang (data) {
  return request({
    url: '/admin/epArticle/updateEpArticle',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function delwenzhang (data) {
  return request({
    url: '/admin/epArticle/delEpArticle',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function wenzhangilist (data) {
  return request({
    url: '/admin/epArticle/getEpArticleList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function huoqushangpinlist (data) {
  return request({
    url: '/admin/integral/goods/list',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
